package com.xxxx.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xxxx.entity.Role;
import com.xxxx.entity.UserRole;
import com.xxxx.mapper.UserRoleMapper;
import com.xxxx.service.IUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangyan
 * @since 2017-08-06
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Override
    public List<Role> selectRolesByUserId(Long userId) {
        return baseMapper.selectRolesByUserId(userId);
    }
}
